Added hackery

To make build hopefully work cross platform.