First of all, "System V Semaphores" are restricted to Linux / Posix Systems, there is no SysV under Windows. You cannot use System V functions in a WIndows PHP environment.
At next, as Altrea already said, Bitnami does not deliver any development packages, therefore you cannot compile PHP on yourself. If you need your own "special" version of PHP, you should take any linux server distribution (for example Ubuntu Server Edition) and compile your own binarys out of the system repositories, do not use Xampp instead. Only in such an environment you will be successfull to build your own version of PHP etc.