moved platform specific build to central CMake file