Fixed all compliation + linker issues