Ubuntu 12.04 install support

Fixed Ubuntu 12.04 build/install support. Please test on windows.