Fixed build, compile flags weren't applied for dependencies.