apply fixes for building the pandora port with cmake to master