Use subproject for compilation, thanks to DarkDimius

adapted from pull request #2