Linux compilation fixes and work on building properly. [WIP]